package com.anolesoft.amljmes.billing.service.impl;

//import com.anolesoft.yr.mbus.util.GlobalLoginInfo;
import com.anolesoft.amljmes.billing.controller.WorkshopInfoController;
import com.anolesoft.amljmes.billing.dto.WorkshopInfoDto;
import com.anolesoft.amljmes.billing.service.WorkshopInfoService;
import com.anolesoft.amljmes.billing.service.mapper.WorkshopInfoServiceMapper;
//import com.anolesoft.yr.util.PageData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class WorkshopInfoServiceImpl implements WorkshopInfoService{
    @Autowired
    WorkshopInfoServiceMapper workshopInfoServiceMapper;

    @Override
    public List<WorkshopInfoDto> queryWorkshopInfo(WorkshopInfoController.DemoVO demoVO) {
        List<WorkshopInfoDto> queryWorkshopDTto = workshopInfoServiceMapper.queryWorkshopSQL(demoVO);
        return queryWorkshopDTto;
    }

    @Override
    public int addWorkshop(WorkshopInfoDto inFoDtoParam) {
        int count = workshopInfoServiceMapper.addWorkshop(inFoDtoParam);
        return count;
    }

    @Override
    public int updateWorkshop(WorkshopInfoDto inFoDtoParam) {
        int count = workshopInfoServiceMapper.updateWorkshop(inFoDtoParam);
        return count;
    }

    @Override
    public int deleteWorkshop(WorkshopInfoDto inFoDtoParam) {
        int count = workshopInfoServiceMapper.deleteWorkshop(inFoDtoParam);
        return count;
    }

    @Override
    public int isWorkshopName(WorkshopInfoDto inFoDtoPara) {
        int count = workshopInfoServiceMapper.isWorkshopName(inFoDtoPara);
        return count;
    }

    @Override
    public List<WorkshopInfoDto> workshopAll() {
        List<WorkshopInfoDto> workshopDtoAll=workshopInfoServiceMapper.WorkshopAll();
        return workshopDtoAll;
    }
}
